package com.heima.test01;

public class Bank {
    private String accountId;
    private String accountHolder;
    private double balance;

    public Bank() {
    }

    public Bank(String accountId, String accountHolder, double balance) {
        this.accountId = accountId;
        this.accountHolder = accountHolder;
        this.balance = balance;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAccountHolder() {
        return accountHolder;
    }

    public void setAccountHolder(String accountHolder) {
        this.accountHolder = accountHolder;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    public void input(double balance){
        this.balance += balance;
        System.out.println("存款成功");
    }
    public void output(double balance){
        this.balance -= balance;
        System.out.println("取款成功");
    }
}
